<?php

namespace common\models\member;

use Yii;

/**
 * This is the model class for table "{{%member_account_number}}".
 *
 * @property int $id
 * @property int $user_id 用户ID
 * @property int $member_id 会员ID
 * @property string $type 账户类型
 * @property string $name 账户名
 * @property string $account_no 账号
 * @property string $bank 开户行
 * @property int $status 资料状态
 * @property int $created_at 创建时间
 * @property int $updated_at 更新时间
 * @property string $mark 备注
 */
class MemberAccountNumber extends \common\db\ActiveRecord {

    /**
     * {@inheritdoc}
     */
    public static function tableName() {
        return '{{%member_account_number}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['user_id', 'member_id', 'status', 'created_at', 'updated_at'], 'integer'],
            [['type', 'account_no'], 'string', 'max' => 20],
            [['name', 'bank'], 'string', 'max' => 50],
            [['mark'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'user_id' => '用户ID',
            'member_id' => '会员ID',
            'type' => '账户类型',
            'name' => '账户名',
            'account_no' => '账号',
            'bank' => '开户行',
            'status' => '资料状态',
            'created_at' => '创建时间',
            'updated_at' => '更新时间',
            'mark' => '备注',
        ];
    }

}
